//
// Created by 32827 on 2024/1/13.
//

#ifndef STM32OSCOVER_YZL_XPT2046_H
#define STM32OSCOVER_YZL_XPT2046_H
#include "yzl_softport_spi.h"
#include "yz_log.h"
#include "yzl_driver.h"
#ifdef YZL_XPT2046_ENABLE
void yzl_xpt2046_screen_touch_init(YZL_GPIO cs,YZL_GPIO clk,YZL_GPIO miso,YZL_GPIO mosi,YZL_GPIO intp);
uint16_t yzl_xpt2046_screen_touch_adc_x();
uint16_t yzl_xpt2046_screen_touch_adc_y();
void yzl_xpt2046_screen_touch_convert_point(struct YZL_TouchPoint *point, uint16_t ReMapData[4][2]);
void yzl_xpt2046_screen_touch_callback(uint16_t x, uint16_t y);
#endif
#endif //STM32OSCOVER_YZL_XPT2046_H
